package com.zh.ssmshirofreemarker.mapper;

import com.zh.ssmshirofreemarker.entity.User;
import com.zh.ssmshirofreemarker.entity.UserRole;
import com.baomidou.mybatisplus.mapper.BaseMapper;

import java.util.Collection;
import java.util.List;
import java.util.Set;

import com.zh.ssmshirofreemarker.entity.UserRole;
import com.baomidou.mybatisplus.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ZH
 * @since 2018-07-24
 */
public interface UserRoleMapper extends BaseMapper<UserRole> {

    Set<String> selectRolesByUserName(User user);

    List<Long> selectRoleIdsByUserId(Long userId);

    List<String> selectUserNamesByRoleId(Long roleId);
}
